home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / xntp3.zip / Config.sun < prev    next >
Text File  |  1992-08-23  |  6KB  |  177 lines

  1. #    or -DXNTP_AUTO_ENDIAN depending on which way your machine's
  2. #    bytes go for the benefit of the DES routine.  Most things
  3. #    sold by DEC, the NS32x32 and the 80386 deserve a
  4. #    -DXNTP_LITTLE_ENDIAN.  Most of the rest of the world does
  5. #    it the other way.  If in doubt, pick one, compile
  6. #    everything and run authstuff/authcert < authstuff/certdata.
  7. #    If everything fails, do it the other way.
  8. #
  9. #    Under BSD, you may define -DXNTP_NETINET_ENDIAN to use
  10. #    netinet/in.h to determine which of -DXNTP_BIG_ENDIAN and
  11. #    XNTP_LITTLE_ENDIAN should be used.
  12. #
  13. LIBDEFS= -DXNTP_BIG_ENDIAN
  14.  
  15. #
  16. # Library loading:
  17. #
  18. # If you don't want your library ranlib'ed, chose the second line
  19. #
  20. RANLIB=        ranlib
  21. #RANLIB=    : # ar does the work of ranlib under System V
  22.  
  23. #
  24. # Definitions for programs:
  25. # If your compiler doesn't understand the declaration `signed char',
  26. #       add -DNO_SIGNED_CHAR_DECL.  Your `char' data type had better be
  27. #    signed.  If you don't know what the compiler knows, try it
  28. #    without the flag.  If you get a syntax error on line 13 of
  29. #    ntp.h, add it.  Note that `signed char' is an ANSIism.  Most
  30. #    older, pcc-derived compilers will need this flag.
  31. #
  32. # If your library already has 's_char' defined, add -DS_CHAR_DEFINED.
  33. #
  34. # For SunOS 3.x, add -DSUN_3_3_STINKS (otherwise it will complain
  35. #    about broadaddr and will hang if you run without a -d flag
  36. #    on the command line.  I actually can't believe the latter
  37. #    bug.  If it hangs on your system with the flag defined, peruse
  38. #    xntpd/ntp_io.c for some rude comments about SunOS 3.5 and try it
  39. #    the other way).  This flag affects xntpd only.
  40. #
  41. # For Ultrix 2.0, add -DULT_2_0_SUCKS.  This OS has the same hanging
  42. #    bug as SunOS 3.5 (is this an original 4.2 bug?) and in addition
  43. #    has some strangeness concerning signal masks.  Ultrix 2.3 doesn't
  44. #    have these problems.  If you're running something in between
  45. #    you're on your own.  This flag affects xntpd only.
  46. #
  47. # For SunOS 4.x, add -DDOSYNCTODR_SUCKS to include the code in ntp_util.c
  48. #    that sets the battery clock at the same time that it updates
  49. #    the driftfile. It does this by revving up the niceness, then
  50. #    sets the time of day to the current time of day. Ordinarily,
  51. #    you would need this only on non-networked machines.
  52. #
  53. # There are three ways to pry loose the kernel variables tick and tickadj
  54. #    needed by ntp_unixclock.c.  One reads kmem and and is enabled
  55. #    with -DREADKMEM.  One uses Sun's libkvm and is enabled with
  56. #    -DUSELIBKVM. The last one uses builtin defaults and is enabled
  57. #    with -DNOKMEM. Therefore, one of -DUSELIBKVM, -DREADKMEM or
  58. #    -DNOKMEM must be defined. Suns and recent BSD should use
  59. #    -DUSELIBKVM; others should use -DREADKMEM. If -DUSELIBKVM, use
  60. #    the DAEMONLIBS below to get the kernel routines.
  61. #
  62. # If your gethostbyname() routine isn't based on the DNS resolver (and,
  63. #    in particular, h_errno doesn't exist) add a -DNODNS.  There
  64. #    doesn't seem to be a good way to detect this automatically which
  65. #    works in all cases.  This flag affects xntpres only.
  66. #
  67. # The flag -DDEBUG includes some debugging code.
  68. #
  69. # The flag -DREFCLOCK causes the basic reference clock support to be
  70. #    compiled into the daemon.  If you set this you will also want
  71. #    to configure the particular clock drivers you want in the
  72. #    CLOCKDEFS= line below.  This flag affects xntpd only.
  73. #
  74. # There is an occurance of a call to rindex() in the daemon.  You may
  75. #    have to include a -Drindex=strrchr to get this to load right.
  76. #
  77. # To change the location of the configuration file, use a
  78. #    -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar.
  79. #
  80. # Under HP-UX, you must use either -Dhpux70 or -Dhpux80 as,
  81. #    well as -DNOKMEM
  82. #
  83. # If your library doesn't include the vsprintf() routine, define
  84. #    NEED_VSPRINTF.
  85. #
  86. # Define -DPPS to include support for a 1-pps signal. Define -DPPSDEV
  87. #    to include a device driver for it. The latter requires a
  88. #    serial port and either a line discipline or STREAMS module.
  89. #    The PPS signal may also be generated via a reference clock
  90. #    module like DCF77. In that case a special define is required for
  91. #    the reference clock module (only one source of PPS signal should
  92. #    be used)
  93. #
  94. DEFS= -DSTREAM -DREFCLOCK -DNO_SIGNED_CHAR_DECL -DPPS -DPPSDEV -DUSELIBKVM -DDEBUG
  95.  
  96. #
  97. #  Authentication types supported.  Choose from DES and MD5.  If you
  98. #  have a 680x0 type CPU and GNU-C, also choose -DFASTMD5
  99. #
  100. AUTHDEFS=-DDES -DMD5
  101.  
  102. #
  103. # Clock support definitions (these only make sense if -DREFCLOCK used):
  104. #
  105. # Define -DLOCAL_CLOCK to include local pseudo-clock support
  106. #
  107. # Define -DPST to include support for the PST 1020 WWV/H receiver.
  108. #
  109. # Define -DWWVB to include support for the Spectracom 8170 WWVB receiver.
  110. #
  111. # Define -DCHU to include support for a driver to receive the CHU
  112. #    timecode.  Note that to compile in CHU support you must
  113. #    previously have installed the CHU serial line discipline in
  114. #    the kernel of the machine you are doing the compile on.
  115. #
  116. # Define -DDCF to include support for the DCF77 receiver. This code
  117. #    requires a special STREAMS module found in the kernel directory.
  118. # Define -DDCFPPS for PPS support via the DCF77 receiver
  119. #    (see also: -DPPS)
  120. #
  121. # Define -DGOES to support a Kinemetrics TrueTime 468-DC GOES receiver.
  122. #
  123. CLOCKDEFS= -DPST -DWWVB -DCHU
  124.  
  125. #
  126. # For MIPS 4.3BSD or RISCos 4.0, include a -lmld to get the nlist() routine.
  127. #    If USELIBKVM is defined above, include a -lkvm to get the kernel
  128. #    routines.
  129. #
  130. #DAEMONLIBS= -lmld
  131. DAEMONLIBS= -lkvm
  132. #DAEMONLIBS=
  133.  
  134. #
  135. # Name resolver library.  Included when loading xntpres, which calls
  136. # gethostbyname().  Define this if you would rather use a different
  137. # version of the routine than the one in libc.a
  138. #
  139. #RESLIB= -lresolv
  140. RESLIB=
  141.  
  142. #
  143. # Option flags for the C compiler.  A -g if you are uncomfortable
  144. #
  145. COPTS= -O
  146.  
  147. #
  148. # C compiler to use.  gcc will work, but avoid the -fstrength-reduce option
  149. # if the version is 1.35 or earlier (using this option caused incorrect
  150. # code to be generated in the DES key permutation code, and perhaps
  151. # elsewhere).
  152. #
  153. COMPILER= cc
  154.  
  155. #
  156. # Directory into which binaries should be installed
  157. #
  158. BINDIR=    /usr/local
  159.  
  160. #
  161. # Special library for adjtime emulation. Used under HP-UX
  162. # (remember to run make in the adjtime directory)
  163. #
  164. #ADJLIB= ../adjtime/libadjtime.a
  165. ADJLIB=
  166.  
  167. #
  168. # BSD emulation library. In theory, this fixes signal semantics under
  169. # HP-UX, but it doesn't work with 8.0 on a 9000s340, so there is now
  170. # a work-around in the code (compiled when hpux80 is defined). In other
  171. # words, use this for HP-UX prior to 8.0.
  172. #
  173. #COMPAT= -lBSD
  174. COMPAT=
  175.  
  176.